$(document).ready(function(){

	var date = new Date();
	var d = date.getDate();
	var m = date.getMonth();
	var y = date.getFullYear();

	if($('.calendar').length > 0){
		$('.calendar').fullCalendar({
			header: {
				left: '',
				center: 'prev,title,next',
				right: ''
			},
			buttonText:{
				today:''
			},
			editable: true,
			events: [
			{
				title: '2个进行中',
				start: new Date(y, m, 1)
			},
			{
				title: '1个超期',
				start: new Date(y, m, 1)
			},
			{
				title: '1个待审核',
				start: new Date(y, m, 1)
			},
			{
				title: '2个进行中',
				start: new Date(y, m, d-5)
			},
			{
				title: '2个进行中',
				start: new Date(y, m, d-3)
			},
			{
				title: '1个超期',
				start: new Date(y, m, d-3)
			},
			{
				title: '2个进行中',
				start: new Date(y, m, d+4)
			},
			{
				title: '1个待审核',
				start: new Date(y, m, d+4)
			},
			{
				title: '1个超期',
				start: new Date(y, m, d+4)
			},
			{
				title: '2个进行中',
				start: new Date(y, m, d)
			},
			{
				title: '1个超期',
				start: new Date(y, m, d)
			},
			{
				title: '2个进行中',
				start: new Date(y, m, d+1)
			}
			]
		});
	}
	
});